package gui;

import javax.swing.*;
import java.awt.*;
import java.io.File;
import java.io.IOException;

public class MyFrame extends JFrame {
    private MyPanel mypanel;

    public MyFrame(){
       // setUndecorated(true);
        //setBackground(new Color(0,0,0,0));
        mypanel=new MyPanel("./drawable/image/back_9.jpg");

        //设置mypanel为窗口默认面板

        setContentPane(mypanel);

        //设置播放器主窗口大小
        setSize(1000,600);
        //设置播放器主窗口初始位置
        setLocationRelativeTo(null);

    }
}
